package democode.check;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @author mac
 */
@RestController
@RequestMapping("/valid")
public class TestValidController {

    @PostMapping("/login")
    public Object test(@RequestBody @Valid UserDto user) {
        return user;
    }

}